let data =  [
  {key: 1, menuName: '转账', menuPath: '/one', components: '/one'},
  {key: 2, menuName: '转账给国家', menuPath: '/one/country', components: '/country', parentId: 1},
  {key: 3, menuName: '转账给个人', menuPath: '/one/person', components: '/person', parentId: 1},
  {key: 4, menuName: '转账给企业', menuPath: '/one/firm', components: '/firm', parentId: 1},
  {key: 5, menuName: '转账给阿里', menuPath: '/one/ali', components: '/ali', parentId: 2},
  {key: 6, menuName: '转账给腾讯', menuPath: '/one/tx', components: '/tx', parentId: 2},
  {key: 7, menuName: '转账给字节', menuPath: '/one/zj', components: '/zj', parentId: 2},
  {key: 8, menuName: '提现', menuPath: '/two', components: '/two'},
  {key: 9, menuName: '提现到支付宝', menuPath: '/two/zfb', components: '/zfb', parentId: 8},
  {key: 10, menuName: '提现到微信', menuPath: '/two/wx', components: '/owx', parentId: 8},
  {key: 11, menuName: '购物', menuPath: '/three', components: '/three'},
  {key: 12, menuName: '京东购物', menuPath: '/one/jd', components: '/jd', parentId: 11},
  {key: 13, menuName: '淘宝购物', menuPath: '/one/tb', components: '/tb', parentId: 11},
  {key: 14, menuName: '天猫超市', menuPath: '/one/tm', components: '/tm', parentId: 13},
  {key: 15, menuName: '其他店铺', menuPath: '/one/other', components: '/other', parentId: 13},
  {key: 16, menuName: '京东直营', menuPath: '/one/jdzy', components: '/zdzy', parentId: 12},
  {key: 17, menuName: '其他', menuPath: '/one/else', components: '/else', parentId: 12},
]
export default {
  /** 获取数据 */
  'GET /api/user': {
    code: 200,
    data
  },
  /** 修改数据 */

  /** 删除数据 */
  'DELETE /api/user': function(key){
    return data.filter(item => {
      if(item.key === key || item.parentId === key){
        return
      }else{
        return item
      }
    })
  }
}